<%@ page language="java" contentType="text/html; charset=utf-8"
		 pageEncoding="utf-8"%>
<%@include file="../../base.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!--Enum数据字典，动态加载-->
<sys:genericTag4o id="_enumData" methodName="getEnumData"
				  className="com.tmptSource.controller.taglib.A1EnumTag"/>
<sys:genericTag4o id="_enumColumnSelfData" methodName="getEnumColumnSelfData"
				  className="com.tmptSource.controller.taglib.OwTaskTag"/>

<!--页面上查询列的值，动态加载，sql语句读数据库配置而来-->
<sys:genericTag4o id="_selectOptions4mainManId" methodName="select4mainManId"
				  className="com.tmptSource.controller.taglib.OwTaskTag"/>
<!--页面上查询列的值，动态加载，sql语句读数据库配置而来-->
<sys:genericTag4o id="_selectOptions4assistManId" methodName="select4assistManId"
				  className="com.tmptSource.controller.taglib.OwTaskTag"/>

<!--页面上查询列的值，动态加载，sql语句读数据库配置而来-->
<sys:genericTag4o id="_selectOptions4owBaseCommiteeId" methodName="select4owBaseCommiteeId"
				  className="com.tmptSource.controller.taglib.OwBaseRoadTag"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Pragma" content="no-cache"/>
	<meta http-equiv="Cache-Control" content="no-cache"/>
	<meta http-equiv="Expires" content="0"/>

	<title>Add_Edit</title>

	<link href="${path}/admin123/css/main.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui1.5/themes/bootstrap/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui1.5/themes/icon.css"/>
	<script type="text/javascript" src="${path}/js/jquery-1.8.0.min.js"></script>
	<script src="${path}/js/jquery/easyui1.5/jquery.easyui.min.js"></script>
	<script src="${path}/js/jquery/easyui1.5/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="${path}/js/jquery.select.js"></script>
	<script type="text/javascript" src="${path}/js/myjs/myutils.js?random=<%=Math.random()%>"></script>
	<script type="text/javascript" src="data.js?random=<%=Math.random()%>"></script>

	<style type="text/css">
		#layoutui { margin:5px;}
		#layoutui ol {  margin: 0;padding:5px;list-style: none;}
		#layoutui ol li{
			margin: 1px; padding-left:5px; padding-top:4px;
			float:left;
			width:300px; height:30px;
			background-color: #efefef;
			border: 1px solid #ddd;
		}
		#layoutui label{width:100px;float:left; border-bottom:0px solid #fff;}
		.clear_div{clear:both;}
	</style>
	<script type="text/javascript">
		var _path = '/zpmng/';
		var _primaryKey='id';
		var _isdialog4AddDialog = '1';

		//Add dialog 中combobox 选择时，看看哪些字段不用输入，直接隐藏了
		var _columnCombobox4AddArray = new Array();
		var _columnCombobox4AddJsonArray = new Array();

		//row data
		var _parameter1_iframedialog = ${paramValues.parameter1_iframedialog[0]};
		/*var _parameter2_iframedialog = ${paramValues.parameter2_iframedialog[0]};
		 var _parameter3_iframedialog = ${paramValues.parameter3_iframedialog[0]};*/
	</script>
	<script type="text/javascript" src="../utils/add_edit.js?random=<%=Math.random()%>"></script>

</head>
<body class="font14">

<form id="form_add" method="post">
	<input type="hidden" id="id" name="id"/>
	<div id="layoutui" style="width: 640px; float: left;">
		<ol>
			<li id="_createman_line" class="text"  title=""
				style="position: relative;">
				<label >队员</label>
				<input class="easyui-textbox" name="createman" id="createman4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />

			</li>
			<li id="_register_data_number_line" class="text"  title=""
				style="position: relative;">
				<label >登记编号</label>
				<input class="easyui-textbox" name="registerDataNumber" id="registerDataNumber4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />

			</li>
			<li id="_task_number_line" class="text"  title=""
			>
				<label >任务编号</label>
				<input class="easyui-textbox" name="taskNumber" id="taskNumber4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />

			</li>
			<li id="_name_line" class="text"  title=""
				style="">
				<label >标题</label>
				<input class="easyui-textbox" name="name" id="name4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />
			</li>
			<li id="_ow_priority_code_line" class="text"  title=""
			>
				<label >紧急程度</label>
				<input class="easyui-combobox" name="owPriorityCode" id="owPriorityCode4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
				<script type="text/javascript">
					//动态通过数据字典取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwPriorityCode4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owPriorityCode4Add';
				</script>
			</li>
			<li id="_ow_task_type_line" class="text"  title=""
				style="position: relative;">
				<label >任务类型</label>
				<input class="easyui-combobox" name="owTaskType" id="owTaskType4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
				<script type="text/javascript">
					//动态通过数据字典取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwTaskType4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owTaskType4Add';

				</script>

			</li>
			<li id="_ow_register_type_line" class="text"  title=""
			>
				<label >登记类型</label>
				<input class="easyui-combobox" name="owRegisterType" id="owRegisterType4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
				<script type="text/javascript">
					//动态通过数据字典取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwRegisterType4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owRegisterType4Add';

				</script>

			</li>
			<li id="_ow_violation_type_line" class="text"  title=""
			>
				<label >违规类型</label>
				<input class="easyui-combobox" name="owViolationType" id="owViolationType4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
				<script type="text/javascript">
					//动态通过数据字典取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwViolationType4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owViolationType4Add';

				</script>

			</li>
			<%--<li id="_finder_dept_id_line" class="text"  title=""
                >
                <label >统计部门Id</label>
                <input class="easyui-textbox" name="finderDeptId" id="finderDeptId4Add"
                    data-options={"valueField":"keyName","textField":"valueName"}  />

            </li>--%>
			<li id="_finder_dept_name_line" class="text"  title=""
			>
				<label >统计部门名称</label>
				<input class="easyui-textbox" name="finderDeptName" id="finderDeptName4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />

			</li>
			<%--<li id="_base_commitee_id_line" class="text"  title=""
                style="position: relative;">
                <label >所属居委</label>
                <input class="easyui-textbox" name="baseCommiteeId" id="baseCommiteeId4Add"
                    data-options={"valueField":"keyName","textField":"valueName"}  />

            </li>--%>

			<li id="_ow_base_commitee_id_line" class="text"  title="">
				<label >所属居委</label>
				<input class="easyui-combobox" name="baseCommiteeId" id="baseCommiteeId4Add"
					   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
				<script type="text/javascript">
					//动态通过SQL取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_selectOptions4owBaseCommiteeId.jsonStr4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'baseCommiteeId4Add';

				</script>

			</li>
			<%--<li id="_base_road_id_line" class="text"  title=""
                >
                <label >居委管理道路</label>
                <input class="easyui-textbox" name="baseRoadId" id="baseRoadId4Add"
                    data-options={"valueField":"keyName","textField":"valueName"}  />

            </li>
            <li id="_pos_house_number_line" class="text"  title=""
                style="width: 608.4px; position: relative;">
                <label >门牌号</label>
                <input class="easyui-textbox" name="posHouseNumber" id="posHouseNumber4Add"
                    data-options={"valueField":"keyName","textField":"valueName"}  />

            </li>--%>
			<li id="_pos_desc_line" class="text"  title=""
				style="width: 608.4px; position: relative;">
				<label >地址</label>
				<input class="easyui-textbox" name="posDesc" id="posDesc4Add"
					   data-options={"valueField":"keyName","textField":"valueName","width":450}  />

			</li>
			<%--<li id="_pos_lng_line" class="text"  title=""
                >
                <label >经度</label>
                <input class="easyui-textbox" name="posLng" id="posLng4Add"
                    data-options={"valueField":"keyName","textField":"valueName"}  />

            </li>
            <li id="_pos_lat_line" class="text"  title=""
                >
                <label >纬度</label>
                <input class="easyui-textbox" name="posLat" id="posLat4Add"
                    data-options={"valueField":"keyName","textField":"valueName"}  />

            </li>--%>
			<li id="_litigant_name_line" class="text"  title=""
			>
				<label >当事人</label>
				<input class="easyui-textbox" name="litigantName" id="litigantName4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />

			</li>
			<li id="_litigant_phone_line" class="text"  title=""
			>
				<label >当事人电话</label>
				<input class="easyui-textbox" name="litigantPhone" id="litigantPhone4Add"
					   data-options={"valueField":"keyName","textField":"valueName"}  />

			</li>
			<li id="_main_man_id_line" class="text"  title=""
				style="width: 608.4px; position: relative;">
				<label >主办人员</label>
				<input class="easyui-combobox" name="mainManId" id="mainManId4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":false,"editable":false,"multiple":true,"width":450}  />
				<script type="text/javascript">
					//动态通过SQL取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_selectOptions4mainManId.jsonStr4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'mainManId4Add';

				</script>

			</li>
			<li id="_assist_man_id_line" class="text"  title=""
				style="width: 608.4px; position: relative;">
				<label >协办人员</label>
				<input class="easyui-combobox" name="assistManId" id="assistManId4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":false,"editable":false,"multiple":true,"width":450}  />
				<script type="text/javascript">
					//动态通过SQL取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_selectOptions4assistManId.jsonStr4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'assistManId4Add';

				</script>

			</li>
			<li id="_issue_content_line" class="text"  title=""
				style="width: 608.4px; height: 59.4px;">
				<label >问题描述</label>
				<input class="easyui-textbox" name="issueContent" id="issueContent4Add"
					   data-options={"valueField":"keyName","textField":"valueName","height":50,"width":450,"multiline":true}  />

			</li>
			<li id="_remark_line" class="text"  title=""
				style="width: 608.4px; height: 59.4px;">
				<label >备注</label>
				<input class="easyui-textbox" name="remark" id="remark4Add"
					   data-options={"valueField":"keyName","textField":"valueName","height":50,"width":450,"multiline":true}  />

			</li>
			<li id="_improve_requied_line" class="text"  title=""
				style="width: 608.4px; position: relative;">
				<label >整改要求</label>
				<input class="easyui-textbox" name="improveRequied" id="improveRequied4Add"
					   data-options={"valueField":"keyName","textField":"valueName","width":450}  />

			</li>
			<li id="_deal_issue_content_line" class="text"  title=""
				style="width: 608.4px; position: relative;">
				<label >处理时现场情况</label>
				<input class="easyui-textbox" name="dealIssueContent" id="dealIssueContent4Add"
					   data-options={"valueField":"keyName","textField":"valueName","width":450}  />

			</li>
			<li id="_ow_deal_type_line" class="text"  title=""
				style="position: relative;">
				<label >处理方式</label>
				<input class="easyui-combobox" name="owDealType" id="owDealType4Add"
					   data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
				<script type="text/javascript">
					//动态通过数据字典取值
					_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwDealType4addDialog}';
					_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owDealType4Add';

				</script>

			</li>
			<li id="_deal_time_line" class="text"  title=""
				style="position: relative;">
				<label >完成时间</label>
				<input class="easyui-datetimebox" name="dealTime" id="dealTime4Add"
					   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />

			</li>
			<li id="_deal_result_line" class="text"  title=""
				style="width: 608.4px; height: 59.4px;">
				<label >处理结果</label>
				<input class="easyui-textbox" name="dealResult" id="dealResult4Add"
					   data-options={"valueField":"keyName","textField":"valueName","height":50,"width":450,"multiline":true}  />

			</li>
			<li id="_deal_remark_line" class="text"  title=""
				style="width: 608.4px; height: 59.4px;">
				<label >解决备注</label>
				<input class="easyui-textbox" name="dealRemark" id="dealRemark4Add"
					   data-options={"valueField":"keyName","textField":"valueName","height":50,"width":450,"multiline":true}  />

			</li>
		</ol>
		<div style="clear:both;"></div>

		<input type="hidden" size="100" id="owPictureMagDtoListStr" name="owPictureMagDtoListStr"/>

		<!-- 加载图片 -->
		<div id="picMagDiv" style="background-color: #fff; text-align: left;margin-top:10px;"></div>


		<!-- 地图 -->
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=eX0oWIhkTt7PMIWp8r2t0MussrF2CKSW"></script>
		<script type="text/javascript" src="../../map/js/map_show.js?random=<%=Math.random()%>"></script>
		<div style="width: 600px;height: 300px; margin-left: 10px; margin-top: 5px;" id="allmap"></div>


		<div style="height: 10px;"></div>
	</div>


	<div id="signDiv" style="float: left;"></div>
	<div style="clear:both;"></div>

	<script type="text/javascript">
		//加载图片
		var _imgpath = _parameter1_iframedialog.signPic;
		console.log(_imgpath);
		var img = $('<p>签名：<p/><img src="' + _imgpath + '" alt="" width="200" style="margin:5px;"/>');
		img.appendTo($("#signDiv"));

		//加载图片
		var owPictureMagDtoListStr ="" ;
		var i = 0;
		var len = _parameter1_iframedialog.owPictureMagDtoList.length;
		for(i = 0;i<len;i++){
			var _frontBackSort = _parameter1_iframedialog.owPictureMagDtoList[i].frontBackSort;
			var _frontBackSortHTML = $('<span>处理前：</span>  <br/>');
			if(_frontBackSort==2){
				_frontBackSortHTML = $('<span>处理后：</span>  <br/>');
			}
			_frontBackSortHTML.appendTo($("#picMagDiv"));

			var _imgpath = _parameter1_iframedialog.owPictureMagDtoList[i].path;
			var img = $('<img src="'+_imgpath+'" alt="" width="400" style="margin:5px;"/> <br/>');
			img.appendTo($("#picMagDiv"));
			owPictureMagDtoListStr = owPictureMagDtoListStr+_imgpath+";";
		}
		$("#owPictureMagDtoListStr").val(owPictureMagDtoListStr);
	</script>

</form>

</body>
</html>




